package hz.mobileproject.pda.network;

import hz.mobileproject.pda.utils.SettingFileUtil;

/**
 * Created by zmybi on 2017/8/28.
 */

public class Constance {

    //TODO 项目名   广西江宁项目名为 HzPoliceTong
    public static final String PROJECT_NAME = "HzPoliceTong";

    public static String BASE_URL = SettingFileUtil.getProperties("base_url");
    public static String BASE_URL_NOPORT = SettingFileUtil.getProperties("base_ip");

//    二监测试用IP
//    String BASE_URL = "http://172.20.2.70:8090";
//    String BASE_URL_NOPORT = "172.20.2.70";


    //9月1日测试
//    String BASE_URL = "http://192.168.3.66:8090";
//    String BASE_URL_NOPORT = "192.168.3.66";

    public static Boolean isNeiMeng = false; //正式版本则neiMeng为false,外网演示版本才为true


    /**
     * -----------传递数据信息常量-------------------
     */
    public static final String EDU_UPLUAD_TO_EVALUATE_INTER = "inter";
    public static final String EDU_UPLUAD_TO_EVALUATE_EDUTYPE = "eduType";
    public static final String TO_PLAYMP3EVALUATE = "item";

    /**
     * -----------本地存储信息常量-------------------
     */
    public static final String DATE_YMDHMS = "yyyy-MM-dd HH:mm:ss";
    public static final String DATE_YM = "yyyy-MM";
    public static final String SP_CUSNUMBER = "cusnumber";
    public static final String SP_POLICE_ID = "police_id";
    public static final String SP_POLICE_CODE = "police_code";
    public static final String SP_POLICE_NAME = "police_name";
    public static final String SP_DEPT_NAME = "department_name";
    public static final String SP_DEPT_ID = "department_id";

    //教育谈话不用跟踪处置的项id
    //危险评估1
    public static final String DANGER_EVALUATE_OK = "4";
    //情绪评估
    public static final String EMOTION_EVALUATE_OK = "3";
    //谈话(录音)评估
    public static final String TALK_EFFECT_OK = "1";

    //内容概要最少选择项
    public static final int CONTENT_SUMMARY_MIN_SELECTED = 2;


    



    /**
     * -----------------网络接口--------------------
     */

    //登录
    public final static String URL_LOGIN =  "/" + PROJECT_NAME + "/app/login";


    //扫码获取警员信息
    public final static String URL_LOAD_POLICE_INFO = "/" + PROJECT_NAME + "/rollCall/loadPoliceInfo";
    //加载所有部门
    public final static String URL_LOAD_DEPT = "/" + PROJECT_NAME + "/app/loadDept";

    //手持机是否可以返回
    public final static String ROLLCALL_CLOSE = "/" + PROJECT_NAME + "/rollCall/close";

    //扫码获取罪犯信息
    public final static String URL_LOAD_PRISONER_INFO = "/" + PROJECT_NAME + "/eduTalk/loadPrisonerInfo";
    //教育谈话 - 获取谈话配置
    public final static String URL_EDUTALK_LOAD_TYPE = "/" + PROJECT_NAME + "/eduTalk/loadType";
    //教育谈话 - 上报教育谈话
    public final static String URL_EDUTALK_INSERT_EDU = "/" + PROJECT_NAME + "/eduTalk/insertEducational";
    //教育谈话 - 查询未谈话的罪犯
    public final static String URL_EDUTALK_QUERY_NOTALK = "/" + PROJECT_NAME + "/eduTalk/queryNoTalkPrisoner";
    //教育谈话 - 加载语音内容
    public final static String URL_EDUTALK_LOAD_CONTENT = "/" + PROJECT_NAME + "/eduTalk/loadVoiceContent";
    //教育谈话 - 分页查询本部门教育谈话
    public final static String URL_EDUTALK_QUERY_ALL = "/" + PROJECT_NAME + "/eduTalk/queryEducationalLog";
    //教育谈话 - 更新教育谈话
    public final static String URL_EDUTALK_UPDATE_EVALUATE = "/" + PROJECT_NAME + "/eduTalk/updateEducational";

    //亲情电话 - 保存评价
    public final static String URL_PHONE_SAVE_EVALUATION = "/" + PROJECT_NAME + "/family/saveEvaluation";


    //工具清点 - 获取配置
    public final static String URL_TOOL_GET_SYS_SET = "/" + PROJECT_NAME + "/toolSet/getSysSet";
    //工具清点 - 判断是否在清点时间段
    public final static String URL_TOOL_GET_CLEAR_TIME = "/" + PROJECT_NAME + "/toolclear/clear_time";
    //工具清点 - 查询工具信息
    public final static String URL_TOOL_SEL_TOOL_INFO = "/" + PROJECT_NAME + "/toolBase/getToolBase";
    //工具清点 - 查询工位信息
    public final static String URL_TOOL_SEL_STATION = "/" + PROJECT_NAME + "/stationBase/getStationInfo";
    //工具清点 - 统计正常 已分配数据的空闲使用数量
    public final static String URL_TOOL_FREE_COUNT = "/" + PROJECT_NAME + "/toolBase/countTool";
    //工具清点 - 工具收、发
    public final static String URL_TOOL_MODIFY_TOOL_STATUS = "/" + PROJECT_NAME + "/toolStatus/modify";
    //工具清点 - 工具报废
    public final static String URL_TOOL_SCRAP_TOOLS = "/" + PROJECT_NAME + "/toolStatus/scrapTool";
    //工具清点 -	扫工位或者使用人条码查询所有绑定的工具信息
    public final static String URL_TOOL_GET_GRANTED_TOOLS = "/" + PROJECT_NAME + "/toolBase/selToolInfo";
    //工具清点 - 开始清点
    public final static String URL_TOOL_START = "/" + PROJECT_NAME + "/toolclear/start";
    //工具清点 - 加载列表
    public final static String URL_TOOL_QUERY_CALL_LIST = "/" + PROJECT_NAME + "/toolclear/load_clear";
    //工具清点 - 清点
    public final static String URL_TOOL_CALLING = "/" + PROJECT_NAME + "/toolclear/calling";
    //工具清点 - 结束
    public final static String URL_TOOL_END = "/" + PROJECT_NAME + "/toolclear/end";
    //工具清点 - 插入小件管理数据
    public final static String URL_SMALL_TOOL_ADD_TOOL = "/" + PROJECT_NAME + "/smalltool/add_small";
    //工具清点 - 插入非发放记录并修改对应的发放数据
    public final static String URL_SMALL_TOOL_UPDATE_TOOL = "/" + PROJECT_NAME + "/smalltool/add_update_small";
    //工具清点 - 查询已发放小件的记录
    public final static String URL_SMALL_TOOL_SELECT_HISTORY = "/" + PROJECT_NAME + "/smalltool/select_small_tool";


    //训诫-- 加载类型
    public final static String URL_ADMONITION_LOADTYPE = "/" + PROJECT_NAME + "/admonition/loadType";
    //训诫-- 保存
    public final static String URL_ADMONITION_ADD = "/" + PROJECT_NAME + "/admonition/add";

    //消防器材检查 - 开始检查
    public final static String URL_FIREGIGHTING_START = "/" + PROJECT_NAME + "/fireFighting/start";
    //消防器材检查 - 加载列表
    public final static String URL_FIREGIGHTING_QUERY_LIST = "/" + PROJECT_NAME + "/fireFighting/queryFireFighting";
    //消防器材检查 - 清点（有图片）
    public final static String URL_FIREGIGHTING_CALLING = "/" + PROJECT_NAME + "/fireFighting/calling";
    //消防器材检查 - 清点（无图片）
    public final static String URL_FIREGIGHTING_CALLING_NO_PIC = "/" + PROJECT_NAME + "/fireFighting/calling1";
    //消防器材检查 - 结束
    public final static String URL_FIREGIGHTING_END = "/" + PROJECT_NAME + "/fireFighting/end";


    //更新-- 获取下载地址
    public final static String URL_UPDATE_DOWNLOAD = "/" + PROJECT_NAME + "/upgrade/downloadApp";

    //
    public final static String URL_FIRE_CALLING = "/" + PROJECT_NAME + "/fireFighting/calling";


    //更新手持机信息
    public static final String REPORT_HEART_BEAT = "/" + PROJECT_NAME + "/app/reportHearbeat";

    //    工具 库存
    public static final String URL_TOOL_KU_CUN = "/" + PROJECT_NAME + "/addTool/add_tool_stock";
    //工具外借
    public static final String URL_TOOL_BORROW_TOOL = "/" + PROJECT_NAME + "/toolStatus/borrowedTool";

    //工具归还  -  查询需要归还的工具
    public static final String URL_TOOL_GET_BORROWED_TOOL = "/" + PROJECT_NAME + "/toolStatus/getBorrowedTool";
    //工具归还
    public static final String URL_TOOL_RETURN_TOOL = "/" + PROJECT_NAME + "/toolStatus//returnTool" ;
    //查询工具收发报废记录
    public static final String URL_TOOL_QUERY_MANAGE = "/" + PROJECT_NAME + "/queryrecord/manage";
    //查询工具入库
    public static final String URL_TOOL_KUCUN = "/" + PROJECT_NAME + "/queryrecord/add_tool";
    //外接 归还记录
    public static final String URL_TOOL_WAIJIE_AND_GUIHUAN = "/" + PROJECT_NAME + "/queryrecord/borrow";
    //小件管理
    public static final String URL_TOOL_SMALL_MANAGE = "/" + PROJECT_NAME + "/queryrecord/small";

    //小件管理-加载小件类型
    public static final String URL_TOOL_SMALL_TOOL_TYPE = "/" + PROJECT_NAME + "/smalltool/small_tool_type";


    //工位变更
    //根据工位获取工具列表
    public static final String TOOL_GONGWEI_SEL_BY_STATON ="/" + PROJECT_NAME + "/toolStatus/selByStation" ;
    //	点击变更按钮更改工具使用人及工具状态和工位信息
    public static final String URL_TOOL_CHANGE_STATION = "/" + PROJECT_NAME + "/stationBase/changeStation";


    //考勤管理 - 外出报备所有记录
    public static final String URL_OUTGOING_OUTREPORT = "/" + PROJECT_NAME + "/outReport/queryOutReport";
    //考勤管理 - 提交外出报备
    public static final String URL_OUTGOING_SAVEOUTREPORT = "/" + PROJECT_NAME + "/outReport/saveOutReport";
    //考勤管理 - 加载外出事由选项列表
    public static final String URL_OUTGOING_LOADOUTREPORTTYPE = "/" + PROJECT_NAME + "/outReport/loadOutReportType";
    //考勤管理 - 删除外出报备
    public static final String URL_OUTGOING_DELETEOUTREPORT = "/" + PROJECT_NAME + "/outReport/deleteOutReport";
    //考勤管理 - 审批外出报备
    public static final String URL_OUTGOING_EVENTOUTREPORT = "/" + PROJECT_NAME + "/outReport/eventOutReport";

    //考勤管理 - 审批外出报备
    public static final String URL_ATTENDANCE_QUERY_WORK = "/" + PROJECT_NAME + "/work/queryWork";
    //考勤管理 - 加载值班表
    public static final String URL_OUTGOING_QUERY_DUTY = "/" + PROJECT_NAME + "/work/queryDuty";
}
